package com.tony.common;

public class TonyPopupException extends RuntimeException {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static final int DB_ERROR = 1;
	
	private String businessMessage;
	
	private int errorCode;
	
	public int getErrorCode() {
		return errorCode;
	}

	public TonyPopupException(String bMessage) {
		super();
		businessMessage = bMessage;
	}
	public TonyPopupException(int errCode,String bMessage) {
		super();
		errorCode = errCode;
		businessMessage = bMessage;
	}

	public String getBusinessMessage() {
		return businessMessage;
	}

	public void setBusinessMessage(String businessMessage) {
		this.businessMessage = businessMessage;
	}
}
